<template>
  <div class="app-container">
    <el-button @click.prevent="flag=true">测试一</el-button>
    <el-button @click.prevent="flag= false">测试二</el-button>


    <login  v-if='flag'></login>

    <register v-else='flag'></register>
  </div>
</template>

<script>
  import Login from './login'
  import Register from './register'
export default {
  components: {
    Login,
    Register
  },
  data() {
    return {
      flag: true
    }
  },
  methods: {

  }
}
</script>

<style scoped>
</style>

